package com.zl.api;

import java.net.URL;
import java.net.URLConnection;


public class TimeGet{
	
public static void TimeGet (String[] year, String[] month, String[] day, String[] hour, String[] minute)
{
	long ld;
	try
	{
			URL url=new URL("http://open.baidu.com/special/time/");//取得资源对象
			URLConnection uc=url.openConnection();//生成连接对象
			uc.connect(); //发出连接
			ld=uc.getDate(); //取得网站日期时间
	}
	catch(Exception  e)
	{ld = 2222;}
}


}